<script src="https://unpkg.com/mockjs@1.1.0/dist/mock-min.js"></script>
<script>
console.log(window)

// const res = window.Mock.mock({})
const res = Mock.mock({
    a: 11,
    b: 222,
    'c|5': [
        {
                id: '@id',
                img: '@image(30x30)',
                title: '@ctitle',
                date: '@date'
            }
    ]
})

console.log(res)
</script>